file = open('test. txt')
mas = file.readlines()

for j in range (len(mas)-1):
    for i in range(len(mas) -1 -j):
        if int(mas[i]) > int(mas[i + 1]):
            mas[i], mas[i + 1]  = mas[i + 1], mas[i]
print()
for i in mas:
    print(i, end='  ')
        
    
